package com.erp.erp_project.core;

import lombok.Data;

@Data
public class AjaxResult <T>{
    private Boolean success;
    private Integer code;
    private String msg;
    private T data;

    public AjaxResult(T data) {
        this.success = true;
        this.code = 200;
        this.msg = "操作成功";
        this.data = data;
    }
    public AjaxResult(Integer code,String msg){
        this.success=false;
        this.code=500;
        this.msg=msg;
    }
}
